#ifndef NODELEAF_H_
#define NODELEAF_H_
#include "Node.h"
#include <string>
using namespace std;

namespace Tree {

class NodeLeaf: public Node {

private:

	int nextLeaf; // 0 for end

public:

	NodeLeaf();

	virtual void addInNode(RecordNode* recordNodeToAdd);
	virtual void removeInNode(string keyToDelete);
	//getters and setters
	int getNextLeaf();
	void setNextLeaf(int nextLeafNumber);

	//IRecordable methods
	virtual void fillEntity(char *buffer, unsigned int bufferSize);
	virtual char* buildBuffer();
	virtual unsigned int getBufferSize();

	virtual ~NodeLeaf();

};

}
#endif /* NODELEAF_H_ */
